<?php
$this->registerCssFile('@static/css/movie_index.css');
$this->registerJsFile('@static/js/function.js');
$this->registerJsFile( '@static/js/lrtk.js');
$this->title = '高清美女图片大全_美女明星排行榜_找美女-果图网';
$this->registerMetaTag([
    'name'=>'description',
    'content'=>'果图网(guotuw.com)搜集了全网最新最全的高清性感美女图片大全，最热门的中国，台湾，日本，韩国，欧美美女明星排行榜，想找美女就上果图网！'
]);
$bannerCount = count($banners);

$js = <<<js
$(function(){
	$("#ssearchBtn").click(function(){
		var searchKeyword = $.trim($("#ssearchTxt").val());
		if(searchKeyword != ''){
            window.location.href = '/search/?keyword='+searchKeyword;
		}
	});

    $('#ssearchTxt').keydown(function(e){
        if(e.keyCode==13){
            var searchKeyword = $.trim($("#ssearchTxt").val());
            if(searchKeyword != ''){
                window.location.href = '/search/?keyword='+searchKeyword;
            }
        }
    });
});
js;

$this->registerJs($js)

?>

<div class="index_main">
    <div class="box wrapper">
        <div class="box_l fl">
            <div class="banner670x455" id="playBox">
                <div class="pre"></div>
                <div class="next"></div>
                <div class="smalltitle">
                    <ul>
                        <?php for($i = 0 ; $i < $bannerCount ; $i++):?>
                            <?php echo $i == 0 ? '<li class="thistitle"></li>' : '<li></li>';?>
                        <?php endfor;?>
                    </ul>
                </div>
                <ul class="oUlplay">
                    <?php foreach ($banners as $banner):?>
                    <li>
                        <a href="<?=$banner['link'];?>" title="<?=$banner['title'];?>" target="_blank"><img src="<?=$banner['image'];?>" title="<?=$banner['title'];?>" alt="<?=$banner['title'];?>" />
                            <div class="layer">
                                <strong><?=$banner['title'];?></strong>
                                <p><?=$banner['desc'];?></p>
                            </div>
                        </a>
                    </li>
                    <?php endforeach;?>
                </ul>
            </div>

            <!--问题7 不出现红点-->
            <script>
                $(function(){
                    if($(".oUlplay li").length==1){
                        $(".smalltitle").hide();
                    };
                })
            </script>

        </div>

        <div class="box_r fr">
            <h3>今日头条<span class="fc1">HEADLINE</span></h3>
            <dl class="head_txtlist">
                <dt>
                    <?php foreach ($latestNews as $key => $newInfo):?>
                        <a title="<?=$newInfo['title']?>"  href="/news/<?=$newInfo['id']?>.html"><?=$newInfo['title']?></a>
                        <?php
                            if($key == 0) echo '</dt><dd>';
                            if($key == 2) echo '</dd><dd>';
                        ?>
                    <?php endforeach;?>
                </dd>
                <dt>
                    <?php foreach ($hotNews as $key => $newInfo):?>
                        <a title="<?=$newInfo['title']?>"  href="/news/<?=$newInfo['id']?>.html"><?=$newInfo['title']?></a>
                        <?php
                        if($key == 0) echo '</dt><dd>';
                        if($key == 2) echo '</dd><dd>';
                        ?>
                    <?php endforeach;?>
                </dd>
            </dl>

            <ul class="img_txt mt20">
                <?php foreach ($imgNews as $newInfo):?>
                    <li>
                        <a title="<?=$newInfo['title']?>"  href="/news/<?=$newInfo['id']?>.html">
                            <img title="<?=$newInfo['title']?>" alt="<?=$newInfo['title']?>" src="<?=$newInfo['image']?>" />
                            <span><?=$newInfo['title']?></span>
                        </a>
                    </li>
                <?php endforeach;?>
            </ul>
        </div>
        <div class="clear"></div>
    </div>

    <div class="wrapper">

        <div class="box1 mt20">
            <h2><div class="m_search"><input id="ssearchTxt" type="text" class="txt" placeholder="搜索美女" />
                    <input type="button" id="ssearchBtn" class="btn" /></div>
                <strong>最近更新<em>41</em>美女</strong>
                <span>
                        <a href="/meinv/" class="cur" target="_blank">全部</a>|
                        <a href="/meinv/showgirl/" target="_blank">ShowGirl</a>|
                        <a href="/meinv/xinggan/" target="_blank">性感美女</a>|
                        <a href="/meinv/wangluo/" target="_blank">网络美女</a>|
                        <a href="/meinv/zhuchir/" target="_blank">美女主持人</a>|
                        <a href="/meinv/shaonv/" target="_blank">美少女</a>
                </span>
            </h2>

            <dl>
                <dt>
                        <a title="<?=$indexMaxStar['name']?>(<?=$indexMaxStar['nick_name']?>)" href="/meinv/<?=$indexMaxStar['id']?>.html" target="_blank">
                        <img title="<?=$indexMaxStar['name']?>(<?=$indexMaxStar['nick_name']?>)" alt="<?=$indexMaxStar['name']?>(<?=$indexMaxStar['nick_name']?>)" src="<?=$indexMaxStar['header']?>">
                    </a>
                    <span>
                            <em><i>总评分</i>8.4</em>
                            <strong><?=$indexMaxStar['name']?>(<?=$indexMaxStar['nick_name']?>)</strong>
                            <p>模特、showgirl</p>
                        </span>
                <div class="buy">
                    <a href="/meinv/" target="_blank" class="btn">更多美女</a>
                </div>
                </dt>

                <?php foreach($latestStars as $key=>$star):?>
                    <dd>
                        <div class="img">
                            <a title="<?=$star['name']?>(<?=$star['nick_name']?>)" href="/meinv/<?=$star['id']?>.html">
                                <img title="<?=$star['name']?>(<?=$star['nick_name']?>)" alt="<?=$star['name']?>(<?=$star['nick_name']?>)" src="<?=$star['header']?>">
                            </a>
                            <?php if($key < 4) echo '<small></small>';?>
                            <em><?php echo rand(85,99)/10;  ?></em>
                        </div>
                        <a title="<?=$star['name']?>(<?=$star['nick_name']?>)" href="/meinv/<?=$star['id']?>.html">
                            <strong><?=$star['name']?>(<?=$star['nick_name']?>)</strong>
                        </a>
                        <?=$star['attributeString']?>
                    </dd>
                <?php endforeach;?>




            </dl>
            <div class="clear"></div>
        </div>

        <div class="box2 mt20">
            <h2><a href="/xiezhen/" target="_blank" class="icon_more"><i></i>更多写真</a><strong>美女写真</strong></h2>

            <div class="img_list mt20">
                <ul>
                    <?php foreach($portrays as $portray):?>
                        <li>
                            <a title="<?=$portray['title']?>" href="/xiezhen/<?=$portray['id']?>.html" target="_blank">
                                <div class="img">
                                    <img title="<?=$portray['title']?>" alt="<?=$portray['title']?>" src="<?=$portray['x_img']?>" /><em></em>
                                </div>
                                <span><?=$portray['title']?></span>
                            </a>
                        </li>
                    <?php endforeach; ?>
                </ul>
            </div>
        </div>

        <div class="main">
            <div class="main_l fl">
                <div class="new_title"><a href="/ranking/week/" class="cur">美女周榜</a><a href="#">写真周榜</a><a href="/ranking/month/">美女月榜</a><a href="#">写真月榜</a></div>
                <div class="new_list">
                    <ul>
                        <?php foreach($weekStars as $star):?>
                            <li>
                                <a title="<?=$star['name']?>(<?=$star['nick_name']?>)" href="/meinv/<?=$star['id']?>.html" target="_blank">
                                    <img title="<?=$star['name']?>(<?=$star['nick_name']?>)" alt="<?=$star['name']?>(<?=$star['nick_name']?>)" src="<?=$star['header']?>">
                                    <strong><?=$star['name']?>(<?=$star['nick_name']?>)</strong>
                                    <p><?=$star['desc']?>(<?=$star['nick_name']?>)</p>
                                </a>
                                <span>
                                    <em>标签</em>
                                    <a target="_blank" href="/meinv/zhuchir/" >主持人</a>
                                    <a target="_blank" href="/meinv/xiezhennvyou/">写真女优</a>
                                    <a target="_blank" href="/meinv/yiren/">艺人</a>
                                </span>
                            </li>
                        <?php endforeach;?>
                    </ul>

                    <ul style="display:none;">
                        <?php foreach($weekPortrays as $portray):?>
                            <li>
                                <a href="/xiezhen/<?=$portray['id']?>.html" title="<?=$portray['title']?>" >
                                    <img title="<?=$portray['title']?>" alt="<?=$portray['title']?>" src="<?=$portray['x_img']?>" />
                                    <strong><?=$portray['title']?>)</strong>
                                    <p><?=$portray['desc']?></p>
                                </a>
                                <span>
                                    <em>标签</em>
                                    <?php if(!empty($portray['tags'])):?>
                                        <?php foreach($portray['tags'] as $tag): ?>
                                            <a href="/xiezhen/<?=$tag['alias']?>/" target="_blank">
                                                <?=$tag['name']?>
                                            </a>
                                        <?php endforeach;?>
                                    <?php endif;?>
                                    <i></i><?=date('Y-m-d',$portray['create_time'])?>

                                </span>
                            </li>
                        <?php endforeach;?>
                    </ul>

                    <ul style="display:none;">
                        <?php foreach($monthStars as $star):?>
                            <li>
                                <a title="<?=$star['name']?>(<?=$star['nick_name']?>)" href="/meinv/<?=$star['id']?>.html" target="_blank">
                                    <img title="<?=$star['name']?>(<?=$star['nick_name']?>)" alt="<?=$star['name']?>(<?=$star['nick_name']?>)" src="<?=$star['header']?>">
                                    <strong><?=$star['name']?>(<?=$star['nick_name']?>)</strong>
                                    <p><?=$star['desc']?></p>
                                </a>
                                <span>
                                    <em>标签</em>
                                    <a target="_blank" href="/meinv/zhuchir/" >主持人</a>
                                    <a target="_blank" href="/meinv/xiezhennvyou/">写真女优</a>
                                    <a target="_blank" href="/meinv/yiren/">艺人</a>
                                </span>
                            </li>
                        <?php endforeach;?>
                    </ul>

                    <ul style="display:none;">
                        <?php foreach($monthPortrays as $portray):?>
                            <li>
                                <a href="/xiezhen/<?=$portray['id']?>.html" title="<?=$portray['title']?>" >
                                    <img title="<?=$portray['title']?>" alt="<?=$portray['title']?>" src="<?=$portray['x_img']?>" />
                                    <strong><?=$portray['title']?>)</strong>
                                    <p><?=$portray['desc']?></p>
                                </a>
                                <span>
                                    <em>标签</em>
                                    <?php if(!empty($portray['tags'])):?>
                                        <?php foreach($portray['tags'] as $tag): ?>
                                            <a href="/xiezhen/<?=$tag['alias']?>/" target="_blank">
                                                <?=$tag['name']?>
                                            </a>
                                        <?php endforeach;?>
                                    <?php endif;?>
                                    <i></i><?=date('Y-m-d',$portray['create_time'])?>

                                </span>
                            </li>
                        <?php endforeach;?>
                    </ul>




                </div>
                <script>
                    /*选项卡*/
                    $(".new_title a").each(function(i){
                        $(this).hover(function(){
                            $(".new_title a").removeClass("cur");
                            $(this).addClass("cur");
                            $(".new_list ul").hide().eq(i).show();
                        })
                    })
                </script>
            </div>

            <div class="main_r fr">
                <?php echo  $this->render('/xinwen/recommendArticle'); ?>
<!--                --><?php //echo   $this->render('/xinwen/topArticle'); ?>
                <?php echo  $this->render('/layouts/hotTags');?>
            </div>

            <script>
                $(function(){
                    $(".txtph_list li").each(function(){
                        $(this).hover(function(){
                            $(".txtph_list li").removeClass("cur");
                            $(this).addClass("cur");
                        })
                    })

                })
            </script>

            <div class="clear"></div>
        </div>
    </div>
</div>
